Ext.define('cp.controller.Guest',{
    extend: 'Ext.app.Controller',
    
    views: [
            'LoginForm',
            'LoginWindow'
           ],
    
    init: function(){
    
        this.control({
            'login_window button[action=login]':{
                click: function(btn){
                    btn.up('login_window').submitForm();
                }
            }
            
            
        });
    }
});